package com.example.service.impl;

import com.example.mapper.AdminMapper;
import com.example.po.Admin;
import com.example.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @auter czcjq
 * @date 2022/5/18 11:47
 */
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Admin login(String atel, String apassword) {
        Admin admin = adminMapper.findByaTelAndaPassword(atel, apassword);
        return admin;
    }
}
